for i in range(1, 10):
    for S in range(1, i + 1):
        print(f'{S} * {i} = {S * i}', end=' ')
    print()
    #
    # for i in range(1, 10):
    #     for a in range(1, i + 1):
    #         print(f'{a} * {i} = {a * i}', end=' ')
    #     print()